package com.ruoyi.oa.service;

import com.ruoyi.oa.domain.OaProject;
import com.ruoyi.oa.domain.OaPurchaseApply;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.oa.domain.vo.OaPurchaseApplyVo;
import com.ruoyi.oa.domain.bo.OaPurchaseApplyBo;

import java.util.Collection;
import java.util.List;

/**
 * 采购申请Service接口
 *
 * @author ruoyi
 * @date 2023-03-28
 */
public interface IOaPurchaseApplyService {

    /**
     * 查询采购申请
     */
    OaPurchaseApplyVo queryById(String id);

    /**
     * 通过项目名称查询采购申请
     */
    OaPurchaseApplyVo queryByProjectName(String projectName);
    /**
     * 查询采购申请列表
     */
    TableDataInfo<OaPurchaseApplyVo> queryPageList(OaPurchaseApplyBo bo, PageQuery pageQuery);

    /**
     * 查询采购申请列表
     */
    List<OaPurchaseApplyVo> queryList(OaPurchaseApplyBo bo);

    /**
     * 新增采购申请
     */
    OaPurchaseApplyBo insertByBo(OaPurchaseApplyBo bo);

    /**
     * 修改采购申请
     */
    OaPurchaseApply updateByBo(OaPurchaseApplyBo bo);

    /**
     * 校验并批量删除采购申请信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

    /**
     * 获取没有采购流程的项目信息
     * @return
     */
    public List<OaProject> getProjectList();
}
